package cn.adkii.mybatis.builder;

import cn.adkii.mybatis.session.Configuration;
import cn.adkii.mybatis.type.TypeAliasRegistry;

/**
 * @author malingdi
 * @description 构建器的基类， 建造者模式
 * @date 2023/12/4 15:05
 */
public abstract class BaseBuilder {
    protected final Configuration configuration;

    protected final TypeAliasRegistry typeAliasRegistry;

    public BaseBuilder(Configuration configuration) {
        this.configuration = configuration;
        this.typeAliasRegistry = this.configuration.getTypeAliasRegistry();
    }

    public Configuration getConfiguration() {return configuration;}
}
